#include <iostream>
#include "Common.hpp"

class ThreadCache{
public:
    void* Allocate(size_t size);
    void Deallocate(void* obj,size_t size);
    void* FetchFromCentralCache(size_t index,size_t alignSize);
    //tc向cc当中归还数据块
    void ListTooLong(Freelist& frerlist,size_t size);
private:
    Freelist _freelist[Bucket_Num];
};

// static _declspec(thread) ThreadCache* PTLSThreadCache = nullptr;
static thread_local ThreadCache* PTLSThreadCache = nullptr;
